package com.swotxu.common.constant;

/**
 * @Date: 2021/2/28 16:27
 * @Author: swotXu
 */
public abstract class MallUrlConstant {
    // ------------------------------ 商城各域名地址 --------------------------------
    public static final String URL_MALL_MAIN = "mall.com";
    public static final String URL_MALL_SEARCH = "search.mall.com";
    public static final String URL_MALL_ITEM = "item.mall.com";
    public static final String URL_MALL_AUTH = "auth.mall.com";
    public static final String URL_MALL_CART = "cart.mall.com";
    public static final String URL_MALL_ORDER = "order.mall.com";

    // ------------------------------ 重定向跳转 --------------------------------
    private static final String PREFIX_HTTP = "http://";
    private static final String PREFIX_REDIRECT = "redirect:";
    private static final String PREFIX_REDIRECT_HTTP = PREFIX_REDIRECT + PREFIX_HTTP;
    // 商城主页
    public static final String REDIRECT_MALL_MAIN_INDEX = PREFIX_REDIRECT_HTTP + URL_MALL_MAIN;

    // ------------------------------ 商城 - 认证服 --------------------------------
    /** 认证服 - 重定向注册页面 */
    public static final String AUTH_REDIRECT_REG = PREFIX_REDIRECT_HTTP + URL_MALL_AUTH + "/reg.html";
    /** 认证服 - 重定向登陆页面 */
    public static final String AUTH_REDIRECT_LOGIN = PREFIX_REDIRECT_HTTP + URL_MALL_AUTH + "/login.html";
    public static final String AUTH_HTTP_LOGIN = PREFIX_HTTP + URL_MALL_AUTH + "/login.html";
    /** 认证服 - 微博认证成功回调 */
    public static final String AUTH_WEIBO_SUCCESS = PREFIX_HTTP + URL_MALL_AUTH + "/oauth2.0/weibo/success";

    // ------------------------------ 商城 - 检索服 --------------------------------
    public static final String SEARCH_URL_LIST = PREFIX_HTTP + URL_MALL_SEARCH + "/list.html?";

    // ------------------------------ 商城 - 购物车服 --------------------------------
    /** 购物车 - 加入购物车成功重定向页面 */
    public static final String CART_REDIRECT_LIST = PREFIX_REDIRECT_HTTP + URL_MALL_CART + "/addToCartSuccess.html";

    // ------------------------------ 商城 - 订单服 --------------------------------
    /** 订单 - 重定向下单页面 */
    public static final String ORDER_REDIRECT_TO_TRADE = PREFIX_REDIRECT_HTTP + URL_MALL_ORDER + "/toTrade";

}
